-- GENERATED SPELL FOR [Terrowulf Shadow Weaver] --


function spell0_3791(pUnit, Event) --@Veil of Shadow,Heal--
pUnit:FullCastSpellOnTarget(7068,pUnit)
pUnit:RegisterEvent('Sorts_3791', 16500, 1)
end

function Sorts_3791(pUnit, Event)
local choix_sorts_3791 = math.random(0, 0)
if choix_sorts_3791 == 0 then
pUnit:RegisterEvent('spell0_3791', 1, 1)
end
end

function mob3791_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3791', math.random(1500, 3000), 1)
end

function mob3791_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3791_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3791_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3791, 1, 'mob3791_Action')
RegisterUnitEvent(3791, 2, 'mob3791_Leave')
RegisterUnitEvent(3791, 3, 'mob3791_Kill')
RegisterUnitEvent(3791, 4, 'mob3791_Die')
